Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Add option on rpc server for accepting multiple services #1074

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dipinknair
Copy link
Collaborator

This way user can call their own servicemethods with DefaultServiceMethods for a custom server

server = MechanicalEmbeddedServer(
        port=_port,
        version=_version,
        impl=[DefaultServiceMethods, ServiceMethods],
    )

@dipinknair dipinknair requested a review from a team as a code owner January 29, 2025 22:49
@dipinknair dipinknair requested a review from koubaa January 29, 2025 22:49
@github-actions github-actions bot added the bug Something isn't working label Jan 29, 2025
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jan 29, 2025
Copy link

codecov bot commented Jan 29, 2025

Codecov Report

Attention: Patch coverage is 36.36364% with 7 lines in your changes missing coverage. Please review.

Project coverage is 79.20%. Comparing base (bbbd6c3) to head (8953ef2).
Report is 1 commits behind head on main.

❌ Your patch check has failed because the patch coverage (36.36%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1074      +/-   ##
==========================================
- Coverage   87.34%   79.20%   -8.14%     
==========================================
  Files          36       40       +4     
  Lines        2362     2751     +389     
==========================================
+ Hits         2063     2179     +116     
- Misses        299      572     +273     

[self._install_function(method) for method in methods]

def _install_classes(self, impl):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo - class can be either a single class or a list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants